getBatch

fun getBatch(keys: LongArray, context: Context? = null, compute: (Int) -> Float): FloatArray

EN SIMD-friendly batch resolution.

Resolves keys.size cache entries in a single tight loop. On a cache miss, the provided compute lambda is called with the index; the result is stored and returned. The loop structure is intentionally simple to help the ART JIT emit vectorized (NEON) instructions for the computation body when all items compute the same formula.

This is a public API — callers outside the library can use it to batch-resolve any set of pre-built keys.

PT Resolução em lote amigável ao SIMD / JIT auto-vetorização. API pública — pode ser chamada por código fora da biblioteca.

Return

FloatArray of resolved values in the same order as keys

Parameters

keys

Array of 64-bit keys built via buildKey

context

Optional context used for lazy init and persistence

compute

Lambda (index: Int) -> Float called on cache miss